import styled from "styled-components";

export const Wrapper = styled.div`
`;
export const LearnCourseWrapper = styled.div`
    display: flex;
    align-items: normal;
    justify-content: space-between;
    flex: 1;

    .semester {
        border-right: 1px solid #dadce0;
        flex: 1 1 30%;
        max-height: 400px;
        overflow-x: auto;

        .item {
            cursor: pointer;
            padding: 24px;
            font-size: 14px;
            text-align: left;
            color: #3c4043;
            line-height: 16px;
            border-left: 2px solid transparent;
        }

        .active {
            background: #e8f0ff;
            color: #4285f4;
            border-left-color: #4285f4;
        }
    }

    .course {
        padding-left: 24px;
        padding-top: 24px;
        flex: 1 1 70%;
        overflow: auto;
        height: 400px;

        .item {
            margin-bottom: 16px;
            width: 100%;
            height: 112px;
            padding: 16px;
            background: #fff;
            border: 1px solid #dadce0;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .left {
                margin-right: 16px;
                position: relative;
                width: 96px;
                height: 80px;
                border-radius: 8px 8px 0 0;
                cursor: pointer;
                background: #faa723 url(//assets.ketangpai.com/theme/min/60.png);

                .flag {
                    position: absolute;
                    top: 0;
                    left: 8px;
                    min-width: 20px;
                    max-width: 50px;
                    height: 18px;
                    line-height: 15px;
                    display: inline-block;
                    border-radius: 2px;
                    color: #fff;
                    font-size: 12px;
                    text-align: center;
                    margin-right: 8px;
                }

                p {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 96px;
                    height: 24px;
                    background: rgba(0, 0, 0, .4);
                    font-size: 12px;
                    font-family: PingFangSC, PingFangSC-Semibold;
                    font-weight: 600;
                    text-align: center;
                    color: #fff;
                    line-height: 24px;
                }
            }

            .right {
                flex: 1;

                .header {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                }

                .name {
                    margin-top: 4px;
                    font-size: 18px;
                    font-family: PingFangSC, PingFangSC-Medium;
                    font-weight: 500;
                    text-align: left;
                    color: #333;
                    line-height: 24px;
                    cursor: pointer;
                }

                .bottom {
                    display: flex;
                    align-items: center;
                    margin-top: 6px;
                }
            }
        }
    }
`;
